/*
 *  Copyright (C) 2011 glauco
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.balisunrise.common;

/**
 * Interface do objeto que controla os icones do aplicativo.
 * Esta interface contém os nomes do icones padrão do Aplicativo.
 *
 * @author glauco
 */
public interface IconManager<I> {

    public static final String INSERT = "INSERT";
    public static final String UPDATE = "UPDATE";
    public static final String DELETE = "DELETE";

    public static final String INFORMATION = "INFORMATION";
    public static final String WARNING = "WARNING";
    public static final String ERROR = "ERROR";

    public static final String SEARCH = "SEARCH";
    public static final String ADD = "ADD";
    public static final String EDIT = "EDIT";
    public static final String REMOVE = "REMOVE";

    public static final String CLOSE = "CLOSE";
    
    public static final String CONFIRM = "CONFIRM";
    public static final String CANCEL = "CANCEL";

    public static final String FIRST = "FIRST";
    public static final String PREVIOUS = "PREVIOUS";
    public static final String NEXT = "NEXT";
    public static final String LAST = "LAST";
    
    public static final String PROMPT = "PROMPT";

    public static final String FOLDER = "FOLDER";
    public static final String CALENDAR = "CALENDAR";

    /**
     * Pega um icone pelo nome, ou pelo path do arquivo.
     * @return Um icone do tipo generico definido.
     */
    public I getIcon(String nameOrPath);

    /**
     * Adiciona um icone.
     * @param name nome do icone.
     * @param path caminho do arquivo.
     */
    public void addIcon(String name, String path);
}
